package com.ruoyi.system;

import org.junit.Test;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;

public class AllClassTestJacoco {

    @Test
    public void test2() throws IOException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {

        List<Class<?>> classList = AllClassUnitTest.loadClass();
        for (Class<?> type : classList) {
            Method $java = type.getDeclaredMethod("$jacocoInit");
            Object invoke = $java.invoke(type);

            boolean[] b = (boolean[]) invoke;
            Arrays.fill(b, true);
            System.out.println("============finish yyds===================");
        }

    }

    public static /* 123 */ boolean[] $java() {

        boolean[] bla = new boolean[30];
        return bla;
    }

}
